-
Notifications
You must be signed in to change notification settings - Fork 0
Add load tests #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add load tests #453
Conversation
WalkthroughThe changes introduce several updates related to performance testing using the k6 framework. New utility functions are created to manage environment variables and configuration options. Performance testing scripts are added to validate HTTP responses, while existing components are modified to accept dynamic delay parameters. The ESLint configuration is updated to accommodate new global variables and stricter rules for k6 files. Additionally, a new development dependency is added to the package configuration. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant K6
participant Server
User->>K6: Start Performance Test
K6->>Server: GET Request to Root URL
Server-->>K6: Response (Status 200, Body "Hello WORLD!")
K6->>User: Validation Check Passed
sequenceDiagram
participant User
participant K6
participant Server
User->>K6: Start Streaming Test
K6->>Server: GET Request to Streaming URL with Delay
Server-->>K6: Response (Status 200, Comments)
K6->>User: Validation Check Passed
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (3)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
2f3578b to
a2b11e8
Compare
k6/root.js
Outdated
| const rootUrl = url(''); | ||
| check(http.get(rootUrl), { | ||
| 'status was 200': (res) => res.status === 200, | ||
| 'includes expected text': (res) => res.body?.toString()?.includes('Hello WORLD!'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add more checks from other components? So we can make sure all components are rendered under load testing.
AbanoubGhadban
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
2afaeec to
93c38ef
Compare
| globals: | ||
| __DEBUG_SERVER_ERRORS__: true | ||
| __SERVER_ERRORS__: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used.
74165f4 to
ff89b48
Compare
ff89b48 to
bd44988
Compare
8cb4f79 to
7e81a58
Compare
7e81a58 to
ffc20a0
Compare
ffc20a0 to
72f5115
Compare
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
Chores